#include "cncell.h"

cnCell::cnCell(int color, QWidget *parent)
{
    color = color;
    this->setGeometry(QRect(170, 90, 100, 100));
    switch (color)
    {
        case 1:
            this->setPixmap(QPixmap("C:\\Users\\eangel7cz\\Documents\\Skola\\Projekty\\ICP\\resources\\policko_red.png"));
            break;
        case 2:
            this->setPixmap(QPixmap("C:\\Users\\eangel7cz\\Documents\\Skola\\Projekty\\ICP\\resources\\policko_green.png"));
            break;
        case 3:
            this->setPixmap(QPixmap("C:\\Users\\eangel7cz\\Documents\\Skola\\Projekty\\ICP\\resources\\policko_blue.png"));
            break;
        case 4:
            this->setPixmap(QPixmap("C:\\Users\\eangel7cz\\Documents\\Skola\\Projekty\\ICP\\resources\\policko_yelow.png"));
            break;
        case 5:
            this->setPixmap(QPixmap("C:\\Users\\eangel7cz\\Documents\\Skola\\Projekty\\ICP\\resources\\policko_purple.png"));
            break;
        case 6:
            this->setPixmap(QPixmap("C:\\Users\\eangel7cz\\Documents\\Skola\\Projekty\\ICP\\resources\\policko_grey.png"));
            break;
    };

    this->setScaledContents(true);
    this->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
    this->setWordWrap(false);
    this->setParent(parent);
}

cnCell::~cnCell()
{
};
